<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/resources/css/bootstrap.css"/>
    <link rel="stylesheet"
          href="${pageContext.request.contextPath}/resources/css/addBook.css"/>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/js/jquery-3.3.1.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/resources/js/bootstrap.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath }/resources/js/ajaxfileupload.js"></script>
</head>
<body>
<!--取出上一个页面上带来的page的值-->

<div id="addAll">
    <div id="nav">
        <p>员工管理>信息修改</p>
    </div>

    <div id="table">
        <form action="${pageContext.request.contextPath}/users/updateUser" method="post" id="myform">

            <input type="hidden" name="uid" class="two" value="${u.uid}">
            <input type="hidden" name="roleid" class="two" value="${u.roleid}">
            <table>
                <tr>
                    <td class="one">用户名</td>
                    <td><input type="text" name="uname" value="${u.uname}"
                               class="two"></td>
                </tr>
                <tr>
                    <td class="one">密码</td>
                    <td><input type="password" name="upass" value="${u.upass}"
                               class="two"></td>
                </tr>
                <tr>
                    <td class="one">真实姓名</td>
                    <td><input type="text" name="realname" value="${u.realname }"
                               class="two"></td>
                </tr>
                <tr>
                    <td><input type="submit" value="提交" class="btn btn-success">
                    </td>
                    <td><input type="reset" value="取消" class="btn btn-default"
                               onclick="myclose()">
                        <script
                                type="text/javascript">
                            function myclose() {
                                window.location = "${pageContext.request.contextPath}/users/toUsersPage";
                            }
                        </script>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>

</body>

</html>